<form action='/accounts/login/' method="post" class="navbar-form navbar-right">
    {% csrf_token %}
    <table class="table">
    <tr>
        <td>{{ form.username.label_tag }}</td>
        <td>{{ form.username }}</td>
    </tr>
    <tr>
        <td>{{ form.password.label_tag }}</td>
        <td>{{ form.password }}</td>
    </tr>
    <tr>
        <td><button style="float:right;" type="submit" class="btn btn-info">登陆</button></td>
        <td><button style="float:right;" type="button" onclick="javascript:window.location.href='/intro/'" class="btn btn-danger">取消</button></td>
    </tr>
    </table>
</form>